import 'package:json_annotation/json_annotation.dart';

part 'order_item.g.dart';

@JsonSerializable()
class OrderItem {
  OrderItem(this.categoryId, this.category, this.modelingId, this.modeling, this.quantity);

  @JsonKey(name: 'category_id')
  int categoryId;

  String category;

  @JsonKey(name: 'modeling_id')
  int modelingId;

  String modeling;

  int quantity;

  factory OrderItem.fromJson(Map<String, dynamic> json) => _$OrderItemFromJson(json);

  Map<String, dynamic> toJson() => _$OrderItemToJson(this);
}
